#!/usr/bin/env node

const log = console.log,
  err = console.error,
  arg = process.argv[2];
if(typeof(arg) === 'undefined'){
  err('缺少命令行参数！');
  process.exit(2);
}
if(isNaN(Number(arg))){
  err('不是合法数字！');
  process.exit(3);
}

log('退出码：',arg);
console.log('exit code:', process.argv[2]);
process.exit(arg);

//console.log('exit code:',process.argv[2]);
//process.exit(process.arch[2]);



//console.log('hello','world');
